<%--
  Created by IntelliJ IDEA.
  User: Maibenben
  Date: 2017/9/15
  Time: 11:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>login</title>
</head>
<script>
    function reloadVerifyCode() {
        document.getElementById("verifyCodeImage").setAttribute("src","/mydemo/getVerifyCodeImage")
    }
</script>
<body>
<div style="color:red;font-size: 22px">
    ${message_login}
</div>
<form action="/mydemo/login" method="post">
    姓名:<input type="text" name="username" id="username"/>
    密码:<input type="password" name="password" id=""/>
    验证:<input type="text" name="verifyCode"/>
    &nbsp;&nbsp;
    <img id="verifyCodeImage" onclick="reloadVerifyCode()" src="/mydemo/getVerifyCodeImage"/>
    <br/>
    <input type="submit" value="确认"/>
</form>
</body>
</html>
